
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 导航样式 */
nav {
    background-color: #343a40;
}

nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

nav .nav-link:hover {
    color: white;
}

/* 卡片样式 */
.card {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* 按钮样式 */
.btn {
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 表格样式 */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th, .table td {
    vertical-align: middle;
}

.table thead th {
    background-color: #343a40;
    color: white;
    border-bottom: none;
}

.table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 页脚样式 */
footer {
    margin-top: 2rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .btn-block-xs {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* 自定义动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* 自定义颜色主题 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* 自定义组件样式 */
.card-header {
    font-weight: 600;
    font-size: 1.1rem;
}

/* 加载中动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 自定义提示框 */
.alert-custom {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in-out;
}

/* 自定义模态框样式 */
.modal-dialog-centered {
    width: 50%;
    margin: 100px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-wrap{
    display: flex;
    flex-wrap: wrap;
}

/* 加载状态样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.loading-spinner {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 淡出动画 */
.fade {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.login-card{
    margin-top: 40px;
}